package Deom7;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-19
 * Time: 22:14
 */
public class Test {
    public static void test(Animal animal) {
        animal.sleep();
        animal.eat();
    }
    public static void main(String[] args) {
        test(new Dog("小黄"));
        test(new Cat("喵喵"));
    }
}
